package org.gd.hellojaxb.privat24.ekb.models;

import org.gd.hellojaxb.adapters.IntAdaptersFactory;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

@XmlRootElement(name = "i")
@XmlAccessorType(XmlAccessType.NONE)
public class EKBRequestUserInfoItem {

    @XmlAttribute(name = "Id")
    @XmlJavaTypeAdapter(IntAdaptersFactory.Long.class)
    private Long ekbId;
    @XmlAttribute(name = "OKPO")
    @XmlJavaTypeAdapter(IntAdaptersFactory.Long.class)
    private Long userInn;
    @XmlAttribute(name = "PhoneM")
    private String userPhone;

    public EKBRequestUserInfoItem() {
    }

    public EKBRequestUserInfoItem(Long ekbId, Long userInn, String userPhone) {
        this();
        this.ekbId = ekbId;
        this.userInn = userInn;
        this.userPhone = userPhone;
    }

    public Long getEkbId() {
        return ekbId;
    }

    public void setEkbId(Long ekbId) {
        this.ekbId = ekbId;
    }

    public Long getUserInn() {
        return userInn;
    }

    public void setUserInn(Long userInn) {
        this.userInn = userInn;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }
}
